<div th:fragment="copy">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header header header-demo">
            <div class="layui-main">
                <div class="admin-logo-box">
                <a th:href="@{/index}">
                    <img th:src="@{/images/logo.png}"
                         class="logo" width="128px" height="128px" style="float: left; margin-top: -45px ">
                </a>
                    <div class="larry-side-menu">
                        <img th:src="@{images/ss.png}" width="44px" height="44px" alt="">
                    </div>
                </div>

                <ul class="layui-nav" lay-filter="">
                    <li class="layui-nav-item" id="time"
                        style="margin-right: 50px;font-weight: 300;font-size: 16px;color: #fff;position: absolute;left: -250px;top: 0"></li>
                    <li class="layui-nav-item"><img th:src="${session.sysUser.avatar}" class="layui-circle" width="35px"
                                                    height="35px" alt=""></li>



                    <li class="layui-nav-item"><a href="javascript:;">[[${session.sysUser.name}]]</a>
                        <dl class="layui-nav-child">
                            <!-- 二级菜单 -->
                            <dd><a th:href="@{/one_set}">个人信息</a>
                            </dd>
                            <dd><a th:href="@{/logout}">切换帐号</a></dd>
                            <dd><a th:href="@{/logout}" onclick="logout()">退出</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item x-index"><a href="#"></a></li>
                </ul>
            </div>
        </div>

        <!--左侧导航区域-->


        <div class="layui-side layui-bg-black x-side show_list" style="left:0px;" id="table1">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree site-demo-nav" lay-filter="side">
                    <li class="layui-nav-item layui-this">
                        <a th:href="@{/welcome}">
                            <i class="fa fa-university" lay-tips="首页"></i><cite>控制台</cite>
                        </a>
                    </li>
                    <li class="layui-nav-item" th:each="category,var:${list}" th:if="${category.parentId==0}">
                        <a class="javascript:;" href="javascript:;">
                            <i th:class="${category.icon}" style="top: 3px;font-size:21px"></i><cite th:text="${category.categoryName}"></cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd th:each="child,count:${category.child}" th:if="${child.getParentId==category.categoryId and child.address != '/activity_list'}">
                                <a th:href="${child.address}">
                                    <cite th:text="${child.categoryName}"></cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>


    </div>
</div>